

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>Import EMX/UML2 Files [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, Import,Import EMX files,Import UML2 files,EMX,EMX File Import,EMX File Cross References,UML2,UML2 File Import,UML,UML Models Under Single Root,RSA,RSA Models,Cross Reference,Cross Reference Between EMX Files,Rational Software Architect,Rational Software Architect Models">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">Import EMX/UML2 Files</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="importxmi.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="limitationxmi.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p class="p_BodyText"><span class="f_BodyText">Rational Software Architect (RSA) enables you to add many UML models under a single root. These models can have cross references between them. However, RSA cannot save the entire root as one file; it saves each UML model as a separate EMX file. This means that an EMX file with cross-references is not self-contained as it references elements in another EMX file.</span></p>
<p class="p_BodyText"><span class="f_BodyText">In releases earlier than release 7.0, Enterprise Architect treats each EMX file as a separate model and hence does not allow for cross-references between them. From release 7.0, Enterprise Architect enables these cross-references. You therefore have the option of importing a single EMX/UML2 file or a group of EMX/UML2 files. This option enables you to select a group of related files and import them together, thereby retaining the cross-references between the different files.</span></p>
<p class="p_BodyText"><span class="f_BodyText">To import single or multiple *.emx /*.uml2 files into Enterprise Architect, follow the steps below:</span></p>
<ol style="text-indent: 0px; margin-left: 48px; list-style-position: outside;">
<li value=1><span class="f_NumberedList">In the </span><span class="f_UIControl">Project Browser </span>window<span class="f_NumberedList">, select the package into which to import the file.</span></li>
<li value=2><span class="f_NumberedList">Either: </span></li>
</ol>
<ul style="text-indent: 0px; margin-left: 65px; list-style-position: outside;">
<li><span class="f_Bulletlist3">Right-click and select the </span><span class="f_MenuKeyField">Import/Export | Import Package from XMI</span><span class="f_Bulletlist3"> menu option, or</span></li>
<li><span class="f_Bulletlist3">Select the </span><span class="f_MenuKeyField">Project | Import/Export | Import Package from XMI</span><span class="f_Bulletlist3"> menu option.</span></li>
</ul>
<p class="p_Bulletlist3"><span class="f_Bulletlist3">The</span><span class="f_UIControl"> Import Package from XMI</span><span class="f_Bulletlist3"> dialog displays.</span><br>
<span class="f_Bulletlist3">&nbsp;</span><br>
<img src="importxml.png" width="459" height="298" border="0" alt="ImportXML"><br>
<span class="f_Bulletlist3">&nbsp;</span></p>
<ol style="text-indent: 0px; margin-left: 48px; list-style-position: outside;">
<li value=3><span class="f_NumberedList">Click on the </span><span class="f_MenuKeyField">Import EMX / UML2 Files</span><span class="f_NumberedList"> button. The </span><span class="f_UIControl">Import Package from XMI</span><span class="f_NumberedList"> dialog redisplays, formatted for .EMX/.UML2 file imports.</span><br>
<span class="f_NumberedList">&nbsp;</span><br>
<img src="emx_import_dlg.png" width="441" height="300" border="0" alt="EMX_Import_Dlg"><br>
<span class="f_NumberedList">&nbsp;</span></li>
<li value=4><span class="f_NumberedList">Click on the </span><span class="f_MenuKeyField">[ ... ]</span><span class="f_NumberedList"> (Browse) button next to the </span><span class="f_MenuKeyField">Directory</span><span class="f_NumberedList"> field. The </span><span class="f_UIControl">Select Import EMX / UML2 File(s)</span><span class="f_NumberedList"> dialog displays, which enables you to select multiple files.</span></li>
<li value=5><span class="f_NumberedList">Select the file or files (use </span><span class="f_MenuKeyField">[Ctrl]+</span><span class="f_NumberedList">click or </span><span class="f_MenuKeyField">[Shift]+</span><span class="f_NumberedList">click to select several files) and click on the </span><span class="f_MenuKeyField">Open</span><span class="f_NumberedList"> button. The </span><span class="f_UIControl">Import Package from XMI</span><span class="f_NumberedList"> dialog redisplays; the </span><span class="f_UIControl">Selected File(s)</span><span class="f_NumberedList"> panel lists the selected files.</span></li>
<li value=6><span class="f_NumberedList">Select the </span><span class="f_MenuKeyField">Write Log File</span><span class="f_NumberedList"> checkbox to write a log of import activity (recommended); the log file is saved in the directory from which the file is being imported, with the name </span><span class="f_NumberedList" style="font-style: italic;">import.log</span><span class="f_NumberedList">.</span></li>
<li value=7><span class="f_NumberedList">Click on the </span><span class="f_MenuKeyField">Import</span><span class="f_NumberedList"> button. Enterprise Architect indicates the progress of the import in the </span><span class="f_MenuKeyField">Import Progress</span><span class="f_NumberedList"> field.</span></li>
</ol>




            </div>
          </div>
        </div>



</div>


</body>
</html>
